home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.19980424-19980901 / 000090_news@newsmaster….columbia.edu _Sun May 17 19:13:28 1998.msg < prev    next >
Internet Message Format  |  1998-08-31  |  2KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id TAA14954
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Sun, 17 May 1998 19:13:28 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id TAA22899
  7.     for kermit.misc@watsun; Sun, 17 May 1998 19:13:27 -0400 (EDT)
  8. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: CRC-CCITT in C-Kermit?
  12. Date: 17 May 1998 23:13:25 GMT
  13. Organization: Columbia University
  14. Lines: 20
  15. Message-ID: <6jnqul$mdi$1@apakabar.cc.columbia.edu>
  16. References: <355f6176.22879615@149.174.211.108>
  17. NNTP-Posting-Host: watsun.cc.columbia.edu
  18. Xref: news.columbia.edu comp.protocols.kermit.misc:8743
  19.  
  20. In article <355f6176.22879615@149.174.211.108>,
  21. Ron Heiby <heiby_u@falkor.chi.il.us> wrote:
  22. : Hi! I'm trying to come up with definition and example implementation of
  23. : CRC-CCITT for a standards effort I'm involved with.
  24. : I have run across several implementations that claim to implement CRC-CCITT.
  25. I think they are probably all compatible in the sense that they use the same
  26. generating polynomial, i.e. the one prescribed by the CCITT (ITU-T) for the
  27. 16-bit CRC.  The fact that they arrive at different results most likely
  28. indicates different starting conditions, like:
  29.  
  30. : ... the CRC must be pre-loaded with 0xffff ...
  31.  
  32. Kermit's is initialized to 0.
  33.  
  34. Hint: When implementing CRC calculation in C, be sure to use unsigned
  35. arithmetic, and to avoid implicit conversion of arithmetic operands to signed.
  36.  
  37. - Frank